package cn.whdreamblog.dao;

import java.util.List;

import cn.whdreamblog.entites.Message;
import cn.whdreamblog.entites.PageBean;

public interface MessageDAO {
	public boolean insertMessage(Message msg);
	public boolean deleteMessage(Message msg);
	public List<Message> getAllMessages(int start , int limit , int blogId);
	public List<Message> getAllMessages(int start , int limit );
	public Message getMessageById(Message msg);
	public Message getMessageByAttr(Message msg,String attr);
	public PageBean getAllMessages2Map(int page, int limit, int blogId);
	public PageBean getAllMessages2Map(int page, int limit);
}
